package validjson;

public class BooleanValidator implements Validator {
    public void validate(Object jsonToValidate) throws ValidationException {
        if (!(jsonToValidate instanceof Boolean)) {
            throw new ValidationException(String.format("Validator expected a value of type '%s' but got %s", "Boolean", jsonToValidate == null ? null : jsonToValidate.getClass()));
        }
    }
}
